<?php

namespace App\Http\Controllers;

use App\Http\Controllers\Admin\Business\Repository\ComboActivities;
use App\Repositories\ActivityRepository;
use Illuminate\Http\Request;

class ActivityController extends Controller
{

    public function index(){
        $ActivityRepository=new ActivityRepository();
        $count=$ActivityRepository->getCount();
        return view('web.activity.index',compact('count'));
    }
    public function ajaxList(){
        $ActivityRepository=new ActivityRepository();
        return  $activities=$ActivityRepository->getList();
    }
    public function detail($id){

        $ActivityRepository=new ActivityRepository();
        $detail=$ActivityRepository->getDetail($id);


        return view('web.activity.detail',compact('detail'));
    }
}
